    <head>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.url.js" charset="utf-8"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.validate.min.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.validate.wrapper.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.ui.wxtab.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.ui.wxgrid.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/Calendar/jscal2.js" charset="utf-8"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/Calendar/lang/cn.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/webapp/01_trade/commercialInvoice_edit.js"></script>
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/Grid.css" />
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/Forms_Edit.css" />
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/Calendar/jscal2.css" />
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/UI/TabStrip.css" />
    </head>
    <body>
        <div id="panelTop" style="position:relative; top:0px; height:28px; line-height:28px;">
            <div id="btnPanel" style="position:relative; left:8px; width:auto; top:1px; padding-top:0px;">
                <!--input type="button" name="_ButCheck" value="审核" id="ButCheck" class="actButton" onclick="thisPage.Check();" />
                <input type="button" name="_ButUnCheck" value="反审" id="ButUnCheck" class="actButton" onclick="thisPage.Uncheck();" /-->
                <input type="button" name="_ButClose" value="返回一览画面" id="ButClose" class="actButton" onclick="thisPage.BackToList();" />
            </div>
        </div>
        <input id="HeaderId" type="hidden" value="0" />
        <!--span id="IsChecked" class="n1" style="position:absolute; top:6px; right:8px; width:auto; padding:3px 8px;">状态：已审核。</span-->
        <div id="SlaveArea" style="position:relative; top:5px;">
            <ul id="tabPanelHeader" class="tabstrip" style="top:0px; width:100%">
                <li id="menu_01" class="tabInactive">
                    <div>
                        <span class="tab_stretch"><span class="tabtext"><abbr class="ls_01">销售发票</abbr></span></span>
                    </div>
                </li>
                <li id="menu_02">
                    <div>
                        <span class="tab_stretch"><span class="tabtext"><abbr class="ls_02">明细数据</abbr></span></span>
                    </div>
                </li>
            </ul>
            <div id="tabPanelContent" class="tab-wrapper" style="top:0px; height:auto;">
                <div id="tabWrapper_01" class="tab-content" style="width:100%;">
                    <div id="btnPanel01" style="position:relative; top:5px; left:0px; width:auto;">
                        <input type="button" name="_ButNew" value="增加" id="ButNew" class="actButton" onclick="thisPage.DoInsert();"/>
                        <input type="button" name="_ButUpdate" value="保存" id="ButUpdate" class="actButton" onclick="thisPage.Save();" />
                    </div>
                    <div id="SlaveDataArea_01" style="margin-top:10px;">
                        <table id="tb-field" class="field" style="position:relative; top:0px; left:0px; text-align:left; width:100%;">
                            <colgroup>
                                <col style="width: 90px;" />
                                <col style="width: 240px;" />
                                <col style="width: 120px;" />
                                <col style="width: 220px;" />
                                <col style="width: 90px;" />
                                <col style="width: 220px;" />
                                <col style="width: 90px;" />
                                <col />
                            </colgroup>
                            <tbody>
                                <tr>
                                    <th>
                                        <label for="MessrsName">购货单位<em>★</em></label>
                                    </th>
                                    <td>
                                        <input type="hidden" id="Messrs" name="_Messrs" tabindex="1" />
                                        <input type="text" id="MessrsName" name="_MessrsName" tabindex="1" readonly="readonly" />
                                        <span id="ChoiceMessrs" title="选择数据" style="cursor:pointer;" onclick="thisPage.DoChoiceMessrs();"><i class="fa-all fa-question-circle fa-1"></i></span>
                                    </td>
                                    <th>
                                        <label for="MotorVessel">SHIPED PER S. S</label>
                                    </th>
                                    <td>
                                        <input type="text" id="MotorVessel" name="_MotorVessel" tabindex="2" />
                                    </td>
                                    <th>
                                        <label for="InvoiceNo">发票号<em>★</em></label>
                                    </th>
                                    <td colspan="3">
                                        <input type="text" id="InvoiceNo" name="_InvoiceNo" tabindex="3" style="width:480px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        <label for="NoOfContract">合同号<em>★</em></label>
                                    </th>
                                    <td colspan="3">
                                        <input type="text" id="NoOfContract" name="_NoOfContract" tabindex="4" style="width:530px;" />
                                    </td>
                                    <th>
                                        <label for="PortOfShipment">起运<em>★</em></label>
                                    </th>
                                    <td>
                                        <input type="text" id="PortOfShipment" name="_PortOfShipment" tabindex="5" />
                                    </td>
                                    <th>
                                        <label for="DateOfShipment">起运日<em>★</em></label>
                                    </th>
                                    <td>
                                        <input type="text" id="DateOfShipment" name="_DateOfShipment" tabindex="6" />
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        <label for="PortOfDestination">到达<em>★</em></label>
                                    </th>
                                    <td>
                                        <input type="text" id="PortOfDestination" name="_PortOfDestination" tabindex="7" />
                                    </td>
                                    <th>
                                        <label for="DateOfInvoice">开票日期<em>★</em></label>
                                    </th>
                                    <td>
                                        <input type="text" id="DateOfInvoice" name="_DateOfInvoice" tabindex="8" />
                                    </td>
                                    <th>
                                        <label for="ModeOfSettlementName">支付方式<em>★</em></label>
                                    </th>
                                    <td>
                                        <input type="hidden" id="ModeOfSettlementId" name="_ModeOfSettlementId" value="0" tabindex="9"/>
                                        <input type="text" id="ModeOfSettlementName" name="_ModeOfSettlementName" tabindex="9" readonly="readonly" />
                                        <span id="ChoiceModeOfSettlement" title="选择数据" style="cursor:pointer;" onclick="thisPage.DoChoiceModeOfSettlement();"><i class="fa-all fa-question-circle fa-1"></i></span>
                                    </td>
                                    <th>
                                        <label for="TotalCaseQuantity">总箱数</label>
                                    </th>
                                    <td>
                                        <input type="text" id="TotalCaseQuantity" name="_TotalCaseQuantity" readonly="readonly" tabindex="10" />
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        <label for="NetWeight">净重</label>
                                    </th>
                                    <td>
                                        <input type="text" id="NetWeight" name="_NetWeight" readonly="readonly" tabindex="11" />
                                    </td>
                                    <th>
                                        <label for="GrossWeight">毛重</label>
                                    </th>
                                    <td>
                                        <input type="text" id="GrossWeight" name="_GrossWeight" readonly="readonly" tabindex="12" />
                                    </td>
                                    <th>
                                        <label for="Cubage">体积</label>
                                    </th>
                                    <td colspan="3">
                                        <input type="text" id="Cubage" name="_Cubage" readonly="readonly" tabindex="13" />
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        <label for="UpdatedByName">操作员</label>
                                    </th>
                                    <td>
                                        <input type="text" id="UpdatedByName" name="_UpdatedByName" readonly="readonly" tabindex="14" value="<#if identityUser?exists>${identityUser.getEmployeeName()}</#if>"/>
                                    </td>
                                    <th>
                                        <label for="UpdatedDate">操作日期</label>
                                    </th>
                                    <td>
                                        <input type="text" id="UpdatedDate" name="_UpdatedDate" readonly="readonly" tabindex="15" />
                                    </td>
                                    <th>
                                        <label for="CheckedByName">审核人</label>
                                    </th>
                                    <td>
                                        <input type="hidden" id="CheckedBy" name="_CheckedBy" />
                                        <input type="text" id="CheckedByName" name="_CheckedByName" readonly="readonly" tabindex="16" />
                                    </td>
                                    <th>
                                        <label for="CheckedDate">审核日期</label>
                                    </th>
                                    <td>
                                        <input type="text" id="CheckedDate" name="_CheckedDate" readonly="readonly" tabindex="17" />
                                    </td>
                                </tr>
                                <tr>
                                    <th style="vertical-align:top; padding-top:5px;">
                                        <label for="Description">备注（1） </label>
                                    </th>
                                    <td colspan="7">
                                        <textarea class="area" id="Description" name="_Description" rows="4" tabindex="18" style="width:100%; height:70px; resize:none;"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <th style="vertical-align:top; padding-top:5px;">
                                        <label for="Description">备注（2） </label>
                                    </th>
                                    <td colspan="7">
                                        <textarea class="area" id="Description" name="_Description" rows="4" tabindex="19" style="width:100%; height:70px; resize:none;"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <th style="vertical-align:top; padding-top:5px;">
                                        <label for="Description">备注（3） </label>
                                    </th>
                                    <td colspan="7">
                                        <textarea class="area" id="Description" name="_Description" rows="4" tabindex="20" style="width:100%; height:70px; resize:none;"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <th style="vertical-align:top; padding-top:5px;">
                                        <label for="Description">备注（4） </label>
                                    </th>
                                    <td colspan="7">
                                        <textarea class="area" id="Description" name="_Description" rows="4" tabindex="21" style="width:100%; height:70px; resize:none;"></textarea>
                                    </td>
                                </tr>
                            </tbody>
                        </table>                  
                    </div>
                </div>
                <!-- 明细-->
                <div id="tabWrapper_02" class="tab-content" style="width:100%;">
                    <div id="btnPanel02" style="position:relative; top:5px; left:0px; width:auto;">
                        <input type="button" name="_ButAddLines" value="增加" id="ButAddLines" class="actButton" onclick="linesHandler.NewLinesWizard();" />
                        <input type="button" name="_ButSaveLines" value="保存" id="ButSaveLines" class="actButton" onclick="linesHandler.SaveLines();" />
                        <input type="button" name="_ButDeleteLines" value="批量删除" id="ButDeleteLines" class="actButton" onclick="linesHandler.DoBatchDeleteLines();" />
                    </div>
                    <table id="tabLinesContent" class="tbDataList" style="margin-top:10px;">
                        <tr>
                            <td>
                                <div id="divH_11" style="overflow: hidden; width:373px;">
                                    <table id="tabHeader01" class="grid01" style="width:100%">
                                        <colgroup>
                                            <col style="width: 27px;" />
                                            <col style="width: 36px;" />
                                            <col style="width: 130px;" />
                                            <col style="width: 179px;" />
                                        </colgroup>
                                        <thead>
                                            <tr>
                                                <th style="text-align:center;">
                                                   <label class="btn" for="CheckAll"><input id="CheckAll" type="checkbox" onclick="linesHandler.DoCheckAll($(this));" /><i></i><span></span></label>
                                                </th>
                                                <th style="text-align: center;">删除</th>
                                                <th>款号</th>
                                                <th>产品名称</th>
                                            </tr>
                                        </thead>
                                    </table>
                                </div>
                            </td>
                            <td style="position:relative;">
                                <div id="r_header" style="position:absolute; top:0px; left:1110px; border:1px solid #c6c3bd; display:block; width:19px; height:25px; background:#edead8; z-index:+1;"></div>
                                <div id="divH_12" style="overflow:hidden; border-right:1px solid #c6c3bd;">
                                    <table id="tabHeader02" class="grid01" style="border-left:none; width:1360px;">
                                        <colgroup>
                                            <col style="width: 80px;" />
                                            <col style="width: 90px;" />
                                            <col style="width: 90px;" />
                                            <col style="width: 130px;" />
                                            <col style="width: 70px;" />
                                            <col style="width: 130px;" />
                                            <col style="width: 160px;" />
                                            <col style="width: 90px;" />
                                            <col style="width: 90px;" />
                                            <col style="width: 90px;" />                                            
                                            <col style="width: 90px;" />
                                            <col style="width: 160px;" />
                                            <col style="width: 90px;" />
                                        </colgroup>
                                        <thead>
                                            <tr>
                                                <th>单价</th>
                                                <th>货币单位</th>
                                                <th>发货总数</th>
                                                <th>目的港</th>
                                                <th>箱数</th>
                                                <th>唛头号</th>
                                                <th>主合同号</th>
                                                <th class="editable-column">净重</th>
                                                <th>毛重</th>
                                                <th>体积</th>
                                                <th>客户名称</th>
                                                <th class="editable-column">发货日期</th>
                                            </tr>
                                        </thead>
                                    </table>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="vertical-align:top;">
                                <div id="divD_11" class="gridDataWrapper" style="border:none; border-bottom:1px solid #c6c3bd; overflow:hidden; width:373px;">
                                    <table id="tabData01" class="grid01 dragtable" style="margin-top:-1px; border-width:1px 0px 0px 1px; width:100%;">
                                        <colgroup>
                                            <col style="width: 27px;" />
                                            <col style="width: 36px;" />
                                            <col style="width: 130px;" />
                                            <col style="width: 180px;" />
                                        </colgroup>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                            </td>
                            <td style="position:relative; vertical-align:top;">
                                <div id="r_line" style="position:absolute; top:0px; left:1110px; display:block; width:1px; height:209px; background:#c6c3bd; z-index:+1;"></div>
                                <div id="b_line" style="position:absolute; top:191px; left:0px; display:block; width:1420px; height:1px; background:#c6c3bd; z-index:+1;"></div>
                                <div id="divD_12" class="gridDataWrapper" style="position:relative; overflow:scroll;" onscroll="thisPage.scrollTo_01();">
                                    <table id="tabData02" class="grid01 dragtable" style="margin-top:-1px; border-width:1px 0px 0px 0px; width:1360px; background-color:rgb(255,255,255);">
                                        <colgroup>
                                            <col style="width: 80px;" />
                                            <col style="width: 90px;" />
                                            <col style="width: 90px;" />
                                            <col style="width: 130px;" />
                                            <col style="width: 70px;" />
                                            <col style="width: 130px;" />
                                            <col style="width: 160px;" />
                                            <col style="width: 90px;" />
                                            <col style="width: 90px;" />
                                            <col style="width: 90px;" />                                            
                                            <col style="width: 90px;" />
                                            <col style="width: 160px;" />
                                            <col style="width: 90px;" />
                                        </colgroup>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </body>